/**
 * Class name: Card
 * Description: gfh
 * 	Related properties and methods of cards
 *      Weight of red cards(0,2): + 100 
 *      Weight of black cards(1,3): + 0 
 * author: Robbin
 * version: 20140923
 * 
 */

package war;

public class Card {

  private int red;
  private int black;
  
  Card() {
	  /**
	   * Initialize Weight of Color
	   */
	  red = 100;
	  black = 0;
  }
  
/**
 * Input: Number of Color
 * Output: Weight of Color
 *  Weight of red cards(0,2): + 100 
 *  Weight of black cards(1,3): + 0 
 */
  public int getWeightByColor(int color){
	  if(color%2 == 0){
		  return red;
	  }
	  else {
		  return black;
	  }	  
	  
  }

}
